
import request from '../untils/request'
import API from './constants'

/**
 * 分页查询列表数据
 */
 const getList = ({page = 1, pageSize = 5,nothing,} = {}) => request({
  url: API.HEALTH_API,
  method: 'GET',
  params: {
    page,
    pageSize,
    nothing,
  }
})

 const getClasz = ({clasz,page = 1,pageSize = 5,aname,astuNo,nothing} =  {}) => request({
  url: API.HEALTH_API,
  method: 'GET',
  params: {
    clasz,
    page,
    pageSize,
    aname,
    astuNo,
    nothing,
  }
 })

 export const update = ({contact,temperature,symptom,stuNo,isout}={}) => request({
  url: API.HEALTH_API ,
  method: 'PUT',
  params: {
    stuNo,contact,temperature,symptom,isout
  }
})

export {getList,
        getClasz}